##
## tinflib  -  tiny inflate library (inflate, gzip, zlib)
##
## GCC makefile (Linux, FreeBSD, BeOS and QNX)
##
## Copyright (c) 2003 by Joergen Ibsen / Jibz
## All Rights Reserved
##
## http://www.ibsensoftware.com/
##

## Adopted for 4p

target  = libtinf.a
objects = tinflate.o tinfgzip.o tinfzlib.o adler32.o crc32.o

cflags  = -s -Wall -Os -fomit-frame-pointer
ldflags = $(cflags)

.PHONY: all clean

all: $(target)

$(target): $(objects)
	-$(RM) $@
	$(AR) rv $@ $(objects)

%.o : %.c
	$(CC) $(cflags) -o $@ -c $<

clean:
	-$(RM) *~

distclean: clean
	-$(RM) $(objects) $(target)
